package com.lggry.thisDemo;

public class Student {
    String name;
    int age;
    char gender;
    public void print(){
        System.out.println(this);
    }

    public void printHobby(String name){
        System.out.println(this.name + "喜欢" + name);
    }

    public void printInfo(String name, int age, char gender){
        this.name = name;
        this.age = age;
        this.gender = gender;
    }
}
